Defines the interface for a probability distribution function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Computes the value of a distribution property.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The property value.
Recenters the distribution about the supplied value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(inout) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value about which to recenter. |
Defines an interface for a multivariate probability distribution function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(multivariate_distribution), | intent(in) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The values at which to evaluate the function. |
The value of the function.
Defines a binomial distribution. The binomial distribution describes the probability p of getting k successes in n independent trials.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | public | :: | n |
The number of independent trials. |
|||
| real(kind=real64), | public | :: | p |
The success probability for each trial. This parameter must exist on the set [0, 1]. |
| procedure, public :: cdf => bd_cdf | |
| procedure, public :: defined_range => bd_range | |
| procedure, public :: mean => bd_mean | |
| procedure, public :: median => bd_median | |
| procedure, public :: mode => bd_mode | |
| procedure, public :: pdf => bd_pdf | |
| procedure, public :: recenter => bd_recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => bd_variance |
Defines a Chi-squared distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | public | :: | dof |
The number of degrees of freedom. |
| procedure, public :: cdf => cs_cdf | |
| procedure, public :: defined_range => cs_range | |
| procedure, public :: mean => cs_mean | |
| procedure, public :: median => cs_median | |
| procedure, public :: mode => cs_mode | |
| procedure, public :: pdf => cs_pdf | |
| procedure, public :: recenter => cs_recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => cs_variance |
Defines a probability distribution.
| procedure(distribution_function), public, deferred, pass :: cdf | |
| procedure, public :: defined_range => dist_defined_range | |
| procedure(distribution_property), public, deferred, pass :: mean | |
| procedure(distribution_property), public, deferred, pass :: median | |
| procedure(distribution_property), public, deferred, pass :: mode | |
| procedure(distribution_function), public, deferred, pass :: pdf | |
| procedure(distribution_recenter), public, deferred, pass :: recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure(distribution_property), public, deferred, pass :: variance |
Defines an F-distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | d1 |
The measure of degrees of freedom for the first data set. |
|||
| real(kind=real64), | public | :: | d2 |
The measure of degrees of freedom for the second data set. |
| procedure, public :: cdf => fd_cdf | |
| procedure, public :: defined_range => fd_range | |
| procedure, public :: mean => fd_mean | |
| procedure, public :: median => fd_median | |
| procedure, public :: mode => fd_mode | |
| procedure, public :: pdf => fd_pdf | |
| procedure, public :: recenter => fd_recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => fd_variance |
Defines a normal distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | mean_value |
The mean value of the distribution. |
|||
| real(kind=real64), | public | :: | standard_deviation |
The standard deviation of the distribution. |
| procedure, public :: cdf => lnd_cdf | |
| procedure, public :: defined_range => lnd_range | |
| procedure, public :: mean => lnd_mean | |
| procedure, public :: median => lnd_median | |
| procedure, public :: mode => lnd_mode | |
| procedure, public :: pdf => lnd_pdf | |
| procedure, public :: recenter => lnd_recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => lnd_variance |
Defines a multivariate probability distribution.
| procedure(multivariate_distribution_function), public, deferred, pass :: pdf | ..\..\ Computes the probability density function.<\p> |
Defines a multivariate normal (Gaussian) distribution.
| procedure, public :: get_cholesky_factored_matrix => mvnd_get_cholesky | |
| procedure, public :: get_covariance => mvnd_get_covariance | |
| procedure, public :: get_means => mvnd_get_means | |
| procedure, public :: initialize => mvnd_init | |
| procedure, public :: pdf => mvnd_pdf | |
| procedure, public :: set_means => mvnd_update_mean |
Defines a normal distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | mean_value |
The mean value of the distribution. |
|||
| real(kind=real64), | public | :: | standard_deviation |
The standard deviation of the distribution. |
| procedure, public :: cdf => nd_cdf | |
| procedure, public :: defined_range => dist_defined_range | |
| procedure, public :: mean => nd_mean | |
| procedure, public :: median => nd_median | |
| procedure, public :: mode => nd_mode | |
| procedure, public :: pdf => nd_pdf | |
| procedure, public :: recenter => nd_recenter | |
| procedure, public :: standardize => nd_standardize | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => nd_variance |
Defines a Poisson distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | occrence_rate |
The rate of occurrences. |
| procedure, public :: cdf => pd_cdf | |
| procedure, public :: defined_range => pd_range | |
| procedure, public :: mean => pd_mean | |
| procedure, public :: median => pd_median | |
| procedure, public :: mode => pd_mode | |
| procedure, public :: pdf => pd_pdf | |
| procedure, public :: recenter => pd_recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => pd_variance |
Defines Student's T-Distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | dof |
The number of degrees of freedom. |
| procedure, public :: cdf => td_cdf | |
| procedure, public :: defined_range => dist_defined_range | |
| procedure, public :: mean => td_mean | |
| procedure, public :: median => td_median | |
| procedure, public :: mode => td_mode | |
| procedure, public :: pdf => td_pdf | |
| procedure, public :: recenter => td_recenter | |
| procedure, public :: standardized_variable => dist_std_var | |
| procedure, public :: variance => td_variance |